package controller

import (
	"ez/apps/td/auto/controller"
	"gitee.com/dreamwood/ez-go/ez"
)

type TdCategoryController struct {
	controller.TdCategoryAutoController
}

func init() {
	c := &TdCategoryController{}
	c.SetRouteParam("/td", "/admin", "TdCategory")
	ez.CreateApi(c.AdminGet(), c.GetAction)
	ez.CreateApi(c.AdminList(), c.ListAction)
	ez.CreateApi(c.AdminSave(), c.SaveAction)
	ez.CreateApi(c.AdminCopy(), c.CopyAction)
	ez.CreateApi(c.AdminTree(), c.TreeAction)
	ez.CreateApi(c.AdminUpdate(), c.UpdateAction)
	ez.CreateApi(c.AdminChoice(), c.ChoiceAction)
	ez.CreateApi(c.AdminDelete(), c.DeleteAction)
	ez.CreateApi(c.AdminUnDelete(), c.UnDeleteAction)
	ez.CreateApi(c.AdminDestroy(), c.DestroyAction)
	ez.CreateApi(c.AdminUpdateMany(), c.UpdateManyAction)
	ez.CreateApi(c.AdminDeleteMany(), c.DeleteManyAction)
	ez.CreateApi(c.AdminDestroyMany(), c.DestroyManyAction)
	ez.CreateApi(c.AdminTree(), c.TreeAction)
}

//func (c TdCategoryController) AccessControl(session *ez.Session) { /* 在这里面重构 */ }
//func (c TdCategoryController) GetAction(session *ez.Session) { /* 在这里面重构 */ }
//func (c TdCategoryController) ListAction(session *ez.Session) { /* 在这里面重构 */ }
